![]() |
PATH![]() |
![]() ![]() |
Disables a menu item or a menu.
pascal void DisableMenuItem (
MenuHandle theMenu,
UInt16 item);
The DisableMenuItem function disables a menu item (and any associated icon) so that the user cannot choose the item from the menu. Unlike the pre-Mac OS 8.5 Menu Manager function DisableItem , the DisableMenuItem function can disable individual menu items with item numbers greater than 31.
If your application disables a menu title using DisableMenuItem , it should then call either the DrawMenuBar function or the InvalMenuBar function to update the menu bar's appearance.